﻿<controls:ChildWindow x:Class="Candy.ErrorWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="500" Height="400" 
           Title="ErrorWindow" Style="{StaticResource ChildWindowStyleChromeless}" >
    <Border Margin="2" BorderBrush="{StaticResource Accent}" BorderThickness="1" >
        <Grid x:Name="LayoutRoot" Background="{StaticResource ControlBackgroundDark}">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition/>
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" HorizontalAlignment="Right" Margin="0,8,8,8" Grid.Row="2" />
            <Rectangle Fill="#FFB20000" Height="30" VerticalAlignment="Top" StrokeThickness="0"/>
            <TextBlock HorizontalAlignment="Left" Margin="8,0,0,0" TextWrapping="Wrap" Text="ERROR" VerticalAlignment="Center" FontSize="18"/>
            <TextBox x:Name="errorTextBox" Grid.Row="1" TextWrapping="Wrap" Text="TextBox"  BorderThickness="0" IsReadOnly="True"/>
        </Grid>
    </Border>
</controls:ChildWindow>